<?php

/**
 * ReleasesXFansubs form base class.
 *
 * @package    form
 * @subpackage releases_x_fansubs
 * @version    SVN: $Id: sfPropelFormGeneratedTemplate.php 8807 2008-05-06 14:12:28Z fabien $
 */
class BaseReleasesXFansubsForm extends BaseFormPropel
{
  public function setup()
  {
    $this->setWidgets(array(
      'idrelease' => new sfWidgetFormInputHidden(),
      'idfansub'  => new sfWidgetFormInputHidden(),
    ));

    $this->setValidators(array(
      'idrelease' => new sfValidatorPropelChoice(array('model' => 'ReleasesXFansubs', 'column' => 'idrelease', 'required' => false)),
      'idfansub'  => new sfValidatorPropelChoice(array('model' => 'ReleasesXFansubs', 'column' => 'idfansub', 'required' => false)),
    ));

    $this->widgetSchema->setNameFormat('releases_x_fansubs[%s]');

    $this->errorSchema = new sfValidatorErrorSchema($this->validatorSchema);

    parent::setup();
  }

  public function getModelName()
  {
    return 'ReleasesXFansubs';
  }


}
